package com.atguigu.serviceedu.feign;

import com.atguigu.vo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("service-vod")
@Component
public interface AliyunVodFeignClient {
    @DeleteMapping ("/deleteVideoById/{videoId}")
    ResultVO deleteVideoById(@PathVariable("videoId") String videoId);
    @PostMapping("/deleteVideoByList")
    public ResultVO deleteVideoByList(@RequestBody List<String> videoidList);
}
